﻿<Window x:Class="ReportingManagement.Components.OptionBPlusServiceProviderEditor"
             xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
             xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 
             xmlns:d="http://schemas.microsoft.com/expression/blend/2008" 
             mc:Ignorable="d" 
             d:DesignHeight="313" d:DesignWidth="400" SizeToContent="WidthAndHeight" MinWidth="400" MinHeight="315" WindowStartupLocation="CenterOwner" ShowInTaskbar="False">
    <Grid Margin="10">
        <Grid.RowDefinitions>
            <RowDefinition Height="Auto" />
            <RowDefinition Height="Auto"/>
            <RowDefinition Height="Auto"/>
            <RowDefinition Height="Auto" />
            <RowDefinition Height="Auto" />
            <RowDefinition Height="Auto" />
            <RowDefinition Height="Auto" />
        </Grid.RowDefinitions>

        <Label x:Name="lblFacilityName" Content="Testing Facility Health Centre" FontSize="26" FontWeight="Bold" />
        <Label x:Name="lblLocation" Content="District Name, Region Name" Grid.Row="1" FontSize="16" />

        <StackPanel Orientation="Horizontal" Grid.Row="2" Margin="0,20,0,0">
            <Label Content="Date Trained"/>
            <DatePicker x:Name="datePickerTrained" Grid.Column="1" SelectedDate="{Binding DateTrained}"/>
        </StackPanel>
        <StackPanel Orientation="Horizontal" Grid.Row="3"  Margin="0,10,0,0">
            <Label Content="Date Started"/>
            <DatePicker x:Name="datePickerStartOptionBPlus" Grid.Column="1" SelectedDate="{Binding DateStarted}"/>
        </StackPanel>

        <CheckBox x:Name="chkProvideCTC" Content="Provide CTC Services" Grid.Row="4" Margin="0,20,0,0" IsChecked="{Binding HasCTC}" />
        <StackPanel Orientation="Horizontal" Grid.Row="5">
            <Label Content="Date Started" Margin="20,0,0,0" IsEnabled="{Binding IsChecked, ElementName=chkProvideCTC}"/>
            <DatePicker x:Name="datePickerStartCTC" Grid.Column="1" SelectedDate="{Binding CTCStartDate}" IsEnabled="{Binding IsChecked, ElementName=chkProvideCTC}"/>
        </StackPanel>

        <Grid Grid.Row="6" Margin="0,20,0,0">
            <Grid.ColumnDefinitions>
                <ColumnDefinition Width="Auto"/>
                <ColumnDefinition />
            </Grid.ColumnDefinitions>
            <Button x:Name="btnSave" Content="Save" Width="75" IsDefault="True" Click="btnSave_Click"/>
            <Button x:Name="btnCancel" Content="Cancel" HorizontalAlignment="Right" Grid.Column="1" Width="75" IsCancel="True" />
        </Grid>
    </Grid>
</Window>
